var base_url = "http://127.0.0.1:5500/";
var api_url = "http://127.0.0.1:9090/";


console.log(layui.data('demo', {
	key: 'testkey',
	value: 'testvalue'
}));

/**
 * HTML5存储
 */
function storage (ls) {
    return {
        set: function (key, value) {
            ls.setItem(key, util.serialize(value));
        },
        get: function (key) {
            return util.deserialize(ls.getItem(key));
        },
        remove: function (key) {
            ls.removeItem(key);
        },
        clear: function () {
            ls.clear();
        }
    };
}